package com.ruoyi.common.core.utils.aliyun;

public class ClientUtils {

	/**
	 * 使用AK&SK初始化账号Client
	 * 
	 * @param accessKeyId
	 * @param accessKeySecret
	 * @return Client
	 * @throws Exception
	 */
	public static com.aliyun.alimt20181012.Client createClient() {
		com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config()
				// 必填，您的 AccessKey ID
				.setAccessKeyId("LTAI5t7EqPbESQ82h5EJLFJh")
				// 必填，您的 AccessKey Secret
				.setAccessKeySecret("M323seYoTUwfp64X3dvmtrHInunIVx");
		// 访问的域名
		config.endpoint = "mt.aliyuncs.com";
		try {
			return new com.aliyun.alimt20181012.Client(config);
		} catch (Exception e) {
			return null;
		}
	}
}
